<?php 
echo'<ul id="topnav">';
if (!isset($curUser['User']['group_id'])){
	echo '<li>'.$html->link('Trang chủ', array('controller' => 'dangkies', 'action' => 'index')).'</li>';
	echo '<li>'.$html->link('Đăng Ký', array('controller' => 'nhatuyendungs', 'action' => 'dangky')).'</li>';
    echo '<li>'.$html->link('Tìm Kiếm', array('controller'=>'dangkies','action'=>'search')).'</li>';
    echo '<li>'.$html->link('Giới Thiệu', array('controller'=>'pages','action'=>'home')).'</li>';
    echo '<li>'.$html->link('Góp Ý', array('controller'=>'pages','action'=>'home')).'</li>';
    }
else
	if(isset($role_id)){
	for($j=0;$j<count($role_id);$j++){
		if($role_id[$j]['phanquyens']['role_id']==1) {
				echo '<li>';
				echo $html->link('Cập Nhật Hồ Sơ', array('controller'=>'ungviens','action'=>'index',$this->Session->read('cur_uv')));
                echo '<ul class="children">';
					echo '<li>'.$html->link('Sửa Thông Tin', array('controller'=>'ungviens','action'=>'view',$this->Session->read('cur_uv'))).'</li>';
					echo '<li>'.$html->link('Xóa Thông Tin', array('controller'=>'ungviens','action'=>'view',$this->Session->read('cur_uv'))).'</li>';
				    echo '<li>'.$html->link('Đổi Mật Khẩu', array('controller'=>'users','action'=>'doimk',$this->Session->read('cur_id'))).'</li>';
                    echo '<li>'.$html->link('Quên Mật Khẩu', array('controller'=>'users','action'=>'forgot',$this->Session->read('cur_id'))).'</li>';
                echo '</ul>';
				echo'</li>';}
   	    if($role_id[$j]['phanquyens']['role_id']==2) {
				echo '<li>';
				echo $html->link('Tìm Kiếm Nhà Tuyển Dụng', array(''));
				echo'</li>';}
		if($role_id[$j]['phanquyens']['role_id']==3) {
				echo '<li>';
				echo $html->link('Nhà Tuyển Dụng Thích Hợp', array('controller'=>'dausaches','action'=>'search'));
				echo'</li>';}
		if($role_id[$j]['phanquyens']['role_id']==5) {
				echo '<li>';
				echo $html->link('Đăng Hồ Sơ Tìm Việc', array('controller'=>'dangkies','action'=>'dangtin'));
				echo'</li>';}
        if($role_id[$j]['phanquyens']['role_id']==4) {
				echo '<li>';
				echo $html->link('Cập Nhật Hồ Sơ', array('controller'=>'nhatuyendungs','action'=>'index',$this->Session->read('cur_ntd')));
                echo '<ul class="children">';
					echo '<li>'.$html->link('Sửa Thông Tin', array('controller'=>'nhatuyendungs','action'=>'view',$this->Session->read('cur_ntd'))).'</li>';
					echo '<li>'.$html->link('Xóa Thông Tin', array('controller'=>'nhatuyendungs','action'=>'view',$this->Session->read('cur_ntd'))).'</li>';
				    echo '<li>'.$html->link('Đổi Mật Khẩu', array('controller'=>'users','action'=>'doimk',$this->Session->read('cur_id'))).'</li>';
                    echo '<li>'.$html->link('Quên Mật Khẩu', array('controller'=>'users','action'=>'forgot',$this->Session->read('cur_id'))).'</li>';
                echo '</ul>';
				echo'</li>';}
		if($role_id[$j]['phanquyens']['role_id']==6) {
				echo '<li>';
				echo $html->link('Đăng Tin Tuyển Dụng', array('controller'=>'dangkies','action'=>'dangtin',$this->Session->read('cur_id')));
				echo'</li>';}
		if($role_id[$j]['phanquyens']['role_id']==7) {
				echo '<li>';
				echo $html->link('Tìm Kiếm Ứng Viên', array(''));
				echo'</li>';}
		if($role_id[$j]['phanquyens']['role_id']==8) {
				echo '<li>';
				echo $html->link('Tìm Kiếm Ứng Viên Thích Hợp', array('controller'=>'docgias','action'=>'index',$this->Session->read('cur_id')));
				echo'</li>';}
		if($role_id[$j]['phanquyens']['role_id']==9) {
				echo '<li>';
				echo $html->link('Quản Lý Đăng Tin', array('controller'=>'dangkies','action'=>'index',$this->Session->read('cur_id')));
				echo'</li>';}
		if($role_id[$j]['phanquyens']['role_id']==10) {
				echo '<li>';
				echo $html->link('Quản Trị', array('controller'=>'docgias','action'=>'index',$this->Session->read('cur_id')));
                echo '<ul class="children">';
					echo '<li>'.$html->link('Xem', array('controller'=>'docgias','action'=>'view',$this->Session->read('cur_id'))).'</li>';
					echo '<li>'.$html->link('Xem', array('controller'=>'docgias','action'=>'view',$this->Session->read('cur_id'))).'</li>';
				echo '</ul>';
				echo'</li>';}
	}
    echo '<li>'.$html->link('Hỏi Đáp _ Góp Ý', array('controller'=>'pages','action'=>'home')).'</li>';}
echo'</ul>';
?>